//
//  ShareClientOAuthInfo.h
//  ShareCenter
//
//  Created by yutao on 14-2-18.
//  Copyright (c) 2014年 yutao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ShareClientType.h"

#define kShareClientOAuthInfo_accessToken	@"kShareClientOAuthInfo_accessToken"
#define kShareClientOAuthInfo_userId		@"kShareClientOAuthInfo_userId"
#define kShareClientOAuthInfo_expire		@"kShareClientOAuthInfo_expire"

@interface ShareClientOAuthInfo : NSObject
@property (nonatomic, copy) NSString	*userIDKey;
@property (nonatomic, copy) NSString	*expirationDateKey;
@property (nonatomic, copy) NSString	*accessTokenKey;

+ (id)defaultShareClientOAuth;
- (ShareClientOAuthInfo *)oAuthInfoWithServiceType:(NSString *)type;
- (NSString *)oAuthValueForKey:(NSString *)key shareServiceType:(NSString *)serviceType;
- (BOOL)saveOAuthInfo:(ShareClientOAuthInfo *)oAuth serviceType:(NSString *)type;
- (BOOL)deleteOAuthInfo:(ShareClientOAuthInfo *)oAuth serviceType:(NSString *)type;
- (BOOL)isAuthValidWithServiceType:(NSString *)type;
- (BOOL)hasOauthInfoWithServiceType:(NSString *)type;



@end


@interface ShareClientOAuthInfoSina : ShareClientOAuthInfo

@end

@interface ShareClientOAuthInfoQQ : ShareClientOAuthInfo

@end
